package vip.zhenzicheng.design_patterns.visitor;

/**
 * 具体访问者角色类(其他人)
 *
 * @author zhenzicheng
 * @date 2022-05-27 13:50
 */
public class Someone implements Person {

  @Override
  public void feed(Cat cat) {
    System.out.println("其他人喂食猫");
  }

  @Override
  public void feed(Dog dog) {
    System.out.println("其他人喂食狗");
  }
}
